package com.loong.web.gp4j.view.util;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.loong.web.suppert.intercept.auth.AuthType;
import com.loong.web.suppert.intercept.statistic.Statistic;

/**
 * 主页资源视图
 *
 * @author 张成轩
 */
@Controller
public class MainViewMapping {

	/**
	 * 主页
	 * 
	 * @param request 请求
	 * @return 视图
	 */
	@RequestMapping(value = "", method = RequestMethod.GET)
	@AuthType
	@Statistic("主页")
	public ModelAndView main(HttpServletRequest request) {

		return new ModelAndView("main/index");
	}
}
